
function checkSub(val){
	
	if(document.getElementById('group_name').value==''){
		alert('组名不能为空！');
		document.getElementById('group_name').focus();
		return false;
	}
	
	if(document.getElementById('group_type').value==''){
		alert('组类型不能为空！');
		document.getElementById('group_type').focus();
		return false;
	}

	if(val=="addForm")
		document.addForm.submit();
	else
		document.updateForm.submit();
}

function search(){
	document.indexForm.submit();
}
